package com.example.mapper;

import com.example.entity.Goodsorders;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface GoodsordersMapper {
    @Insert("insert into goodsorders (member_id, orderNum, address, orderTime, status, amount) values (#{memberId}, #{orderNum}, #{address}, #{orderTime}, #{status}, #{amount})")
    void insert(Goodsorders goodsorders);

    List<Goodsorders> selectAll(Goodsorders goodsorders);


    void updateById(Goodsorders goodsorders);

    @Delete("delete from goodsorders where id = #{id}")
    void deleteById(Integer id);
}
